﻿namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 组件过站图片
    /// </summary>
    public class VProductViaSiteImage : BaseVModel
    {
        private string _barCode = string.Empty;
        private string _image = string.Empty;
        private string _positions = string.Empty;

        #region Public Property

        ///<Summary>
        /// 组件条码
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// 过站记录ID
        ///</Summary>
        public int ViaSiteId { get; set; }

        ///<Summary>
        /// 站点类型
        ///</Summary>
        public Enum.SiteType SiteType { get; set; }

        ///<Summary>
        /// 图片地址
        ///</Summary>
        public string Image
        {
            get { return string.IsNullOrWhiteSpace(_image) ? string.Empty : _image; }
            set { _image = value; }
        }

        ///<Summary>
        /// 标记位置
        ///</Summary>
        public string Positions
        {
            get { return string.IsNullOrWhiteSpace(_positions) ? string.Empty : _positions; }
            set { _positions = value; }
        }

        ///<Summary>
        /// 图片序号
        ///</Summary>
        public int? SortNo { get; set; }
        #endregion

        /// <summary>
        /// 站点类型
        /// </summary>
        public string CNSiteType { get { return !System.Enum.IsDefined(typeof(Enum.SiteType), SiteType) ? string.Empty : EnumConvert.ToDesc(SiteType); } }
    }
}
